import request from '@/config/axios'

export type TONGUEMEMBERVO = {
  userId: number
  purchaseType: string
  addTimes: number
}

export const TongueMemberApi = {
  // 添加舌诊收费次数
  setMemberTimes: async (data: TONGUEMEMBERVO) => {
    return request.post({ url: '/application/tongue-member/add-chargeTimes', data })
  },
  // 获得舌诊会员分页
  getMemberPage: async(params) => {
    return request.get({ url: '/application/tongue-member/page',params })
  },
  // 获得会员舌诊报告汇总
  getMemberReport: async(params) => {
    return request.get({ url: '/application/tongue-member/report-page',params })
  }
}